package com.cosmic.pizza.dao;

import com.cosmic.pizza.pojo.Order;
import com.cosmic.pizza.pojo.OrderInfo;

import java.util.List;

public interface OrderDao {
    List<Order> findAllOrder(int uid, int pageSize, int start);

    List<OrderInfo> findOrderInfoByOid(String oid);

    void insertCartOrder(Order order);

    void insertOrderInfos(OrderInfo orderInfo);

    void checkOutOrder(String oid, String address, String name);

    int PayOrder(String oid);

    int GetFlagOrder(String oid);

    List<Order> findNoneGetOrder(int uid);

    List<Order> findNonePayOrder(int uid);

    int countByUid(int uid);

    Order findOrderByOid(String oid);

    void eval(String oid, int fid, String size, String evalMes);

    OrderInfo findOrderInfo(String oid, int parseInt, String size);
}
